package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Reproduction;
import com.antdesignbackend.backend.entity.entityVo.ReproductionVo;
import com.antdesignbackend.backend.mapper.ReproductionMapper;
import com.antdesignbackend.backend.service.ReproductionService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReproductionServiceImpl extends ServiceImpl<ReproductionMapper, Reproduction> implements ReproductionService {
    @Autowired
    ReproductionMapper reproductionMapper;

    @Override
    public List<ReproductionVo> search(QueryWrapper<ReproductionVo> queryWrapper, Page<ReproductionVo> page) {
        return reproductionMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<ReproductionVo> queryWrapper) {
        return reproductionMapper.count(queryWrapper);
    }
}
